package com.eric.es.document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.time.LocalDate;

@Document(indexName = "zj_project")
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProjectEntity {

    @Id
    private Long id;
    /**
     * 日志标题
     */
    @Field(type = FieldType.Text,name = "project_name")
    private String projectName;

}